<!DOCTYPE html>
<html>
<head>
<title>moveTo</title>
<script>
var myWindow;
function openWin(){
	myWindow=window.open('https://www.baidu.com/','','width=200,height=100');
//	myWindow.document.write("<p>这是我的窗口</p>");
	myWindow.moveTo(100,100);
}
function moveWin(){
	var myWindow2 = window.open('https://www.baidu.com/','','width=200,height=100');
	myWindow2.document.write("<p>这是我的窗口</p>");
	myWindow2.moveTo(500,300);
	myWindow2.focus();
}
</script>
</head>
<body>
	<input type="button" value="打开窗口" onclick="openWin()"/><br><br>
	<input type="button" value="移动窗口" onclick="moveWin()"/>
</body>
</html>